#include "nanod.h"


int     main(int ac, char **av)
{
  int   port;
  nnetrqsth_t rqst;
  int   error = 0;
  
  if(ac < 2)
    {
      printf("First argument must be a port number\n");
      return 0;
    }
  
  port = atoi(av[1]);

  rqst.handler = &http;
  rqst.params = "Salut";
  
  while(error == 0)
    {
      error = nnet_create_tcp_select_server(port, &rqst);
    }
  
  printf("server error code: %i\n", error);
  return -1;
}


